import request from '@/utils/request'

export const getCategoryAPI = ()  => {
  return request({
    url: '/home/category/head'
  })
}
export const getCategoryNav = (id) => {
  return request.get('/category', {
    params: {
      id
    }
  })
}